package pl.edu.agh.hollonCommision.graph.metrics;

import java.util.Map;

import pl.edu.agh.hollonCommision.graph.GraphModel;
import pl.edu.agh.hollonCommision.graph.Vertex;

public class VertexDegree extends IGraphMetric {

	@Override
	public void calculateMetric(GraphModel g) {
		Map<Integer, Vertex> vertices = g.getVertices();
		for(Vertex v: vertices.values()){
			v.setCurrentMetric("degree");
		}
		this.normalizeMetric(g, "degree");
	}
}
